{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "specified material (mtl1)  not loaded!\n"
     ]
    }
   ],
   "source": [
    "import sys,copy,os,inspect\n",
    "if hasattr(sys.modules[__name__], '__file__'):\n",
    "    _file_name = __file__\n",
    "else:\n",
    "    _file_name = inspect.getfile(inspect.currentframe())\n",
    "CURRENT_FILE_PATH = os.path.dirname(_file_name)\n",
    "sys.path.append(os.getcwd()+\"/../neuronVis\")\n",
    "import IONData \n",
    "iondata = IONData.IONData()\n",
    "import Visual as nv\n",
    "import json\n",
    "neuronvis = nv.neuronVis(renderModel=0)\n",
    "\n",
    "neuronvis.render.setBackgroundColor((0.0,0.20,0.5,1.0))\n",
    "neuronvis.addRegion('CLA',[0.5,1.0,0.5])\n",
    "\t# neuronvis.addRegion( color=[0.5, 1.0, 0.5],regionFileName=\"D:/neuron-vis/resource/allobj/Layer3.obj\")\n",
    "# iondata = IONData()\n",
    "\n",
    "# neurons=iondata.getNeuronListBySomaRegion('CLA')\n",
    "\t\n",
    "\t# neuronvis.render.setLookAt((5000,0,15000),(5000,0,0),(0,-1,0))\n",
    "neuronvis.addNeuronByID('220102','030.swc',color=[1,0,0],somaHide=False,axonHide=False,dendriteHide=False)\n",
    "# neuronvis.addNeuronByList(neurons,mirrorToRight=True)\n",
    "\n",
    "neuronvis.render.run()"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3.8.3 ('neuronVis')",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.3 (default, Jul  2 2020, 17:30:36) [MSC v.1916 64 bit (AMD64)]"
  },
  "orig_nbformat": 4,
  "vscode": {
   "interpreter": {
    "hash": "e1da01a652087c3f485a2a8b69806c32fa3b3acf94bcdc0c1ef74e2af5cc794e"
   }
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
